package com.gh.plugin.main.dialog.main.custom;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import androidx.viewpager.widget.ViewPager;

public class CustomViewPager extends ViewPager {
    public boolean j;

    public CustomViewPager(Context arg1, AttributeSet arg2) {
        super(arg1, arg2);
    }

    @Override  // androidx.viewpager.widget.ViewPager
    public boolean onInterceptTouchEvent(MotionEvent arg2) {
        return this.j ? super.onInterceptTouchEvent(arg2) : false;
    }

    @Override  // androidx.viewpager.widget.ViewPager
    public boolean onTouchEvent(MotionEvent arg2) {
        return this.j ? super.onTouchEvent(arg2) : false;
    }

    public void setIsCanScroll(boolean arg1) {
        this.j = arg1;
    }
}

